import java.util.Scanner;
import java.util.regex.Pattern;

public class Demo1 {
    public static void main(String[] args) {
        Scanner sc=new Scanner(System.in);
        System.out.println("nextLine可以接收空格:");
        String str=sc.nextLine();
        System.out.println(str);
        //ctrl+alt+v快速生成方法的返回值
        System.out.println("next不接收空格:");
        String st=sc.next();
        System.out.println(st);
        Pattern pt=sc.delimiter();
        System.out.println(pt);


        sc.close();

    }
}
